//package com.ball.dao;
//
//
//import com.ball.entity.UserOfGame;
//import org.apache.ibatis.annotations.*;
//import org.springframework.stereotype.Component;
//
//import java.util.List;
//
//@Component
//@Mapper
//public interface UserOfGameMapper  {
//    @Insert("insert into userofgame(id,gameId,username,pay) values(null,#{gameId},#{username},#{pay})")
//    void add(UserOfGame userOfGame);
//
//    @Update("update userofgame set gameId=#{gameId},username=#{username},pay=#{pay} where id = #{id}")
//    void update(UserOfGame userOfGame);
//
//    @Delete("delete from userofgame where id= #{id}")
//    void deleteUserOfGameById(@Param("id") int id);
//
//    @Select("select * from userofgame  where id= #{id}")
//    UserOfGame queryUserOfGameById(@Param("id") int id);
//    //根据比赛和用户查找
//    @Select("select * from userofgame where gameId=#{gameId} and username=#{username} ")
//    List<UserOfGame> queryUserOfGameListByGameIdAndUsername(@Param("gameId") String gameId, @Param("username") String username);
//}
